using System;
using System.Windows.Forms;

using Utilities;

namespace GPX
{
    public partial class AskOverwriteDialog : FormEx
    {
        private System.Resources.ResourceManager ResourceManager
        {
            get { return GPXAppResourceManager.ResourceManager; }
        }

        public AskOverwriteDialog()
        {
            InitializeComponent();
        }

        private PhotoInfo _PhotoInfo;
        public PhotoInfo PhotoInfo
        {
            get { return _PhotoInfo; }
            set { _PhotoInfo = value; }
        }

        public bool ApplyForAll
        {
            get { return chkNotAgain.Checked; }
        }

        private void AskOverwrite_Load(object sender, EventArgs e)
        {
            try
            {
                Utilities.Localizer.LocalizeControl(this, ResourceManager);

            }
            catch
            {
                //swallow
            }
        }

        private void btnNo_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.No;
            this.Close();
        }

        private void btnYes_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Yes;
            this.Close();
        }
    }
}